package lj.pojo;

/**
 * @author lj
 * @Description: 课程类
 * @date 2020-11-23 10:02
 * @QQ 851477108
 */

//每门课程有平时成绩、期中考试成绩、实习成绩、期末考试成绩以及总评成绩等多个成绩
public class Grade {
    private String course;
    private int dailyGrade;
    private int midGrade;
    private int doGrade;
    private int endGrade;
    private double sumGrade;

    public Grade() {
    }

    public Grade(String course, int dailyGrade, int midGrade, int doGrade, int endGrade, double sumGrade) {
        this.course = course;
        this.dailyGrade = dailyGrade;
        this.midGrade = midGrade;
        this.doGrade = doGrade;
        this.endGrade = endGrade;
        this.sumGrade = sumGrade;
    }

    public double getSumGrade() {
        return sumGrade;
    }

    public void setSumGrade(double sumGrade) {
        this.sumGrade = sumGrade;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public int getDailyGrade() {
        return dailyGrade;
    }

    public void setDailyGrade(int dailyGrade) {
        this.dailyGrade = dailyGrade;
    }

    public int getMidGrade() {
        return midGrade;
    }

    public void setMidGrade(int midGrade) {
        this.midGrade = midGrade;
    }

    public int getDoGrade() {
        return doGrade;
    }

    public void setDoGrade(int doGrade) {
        this.doGrade = doGrade;
    }

    public int getEndGrade() {
        return endGrade;
    }

    public void setEndGrade(int endGrade) {
        this.endGrade = endGrade;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "course='" + course + '\'' +
                ", dailyGrade=" + dailyGrade +
                ", midGrade=" + midGrade +
                ", doGrade=" + doGrade +
                ", endGrade=" + endGrade +
                ", sumGrade=" + sumGrade +
                '}';
    }
}
